package question4;

public class DepositThread extends Thread {
    static int money = 100;
    @Override
    public void run() {
        for (int i = 1; i < 4 ;i++){
            String name = this.getName();
            System.out.println(name+"第"+i+"次存款"+money+"元"+"卡上金额为："+(money*i)+"元");
        }
    }
}
